package org.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.lease.model.dto.RoomItemDTO;
import org.lease.model.entity.RoomInfo;
import org.lease.model.query.RoomPageQuery;

import java.math.BigDecimal;

@Mapper
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {

    IPage<RoomItemDTO> pageRoomItemQuery(IPage<RoomItemDTO> page, RoomPageQuery query);

    IPage<RoomItemDTO> pageQueryAppRoomItem(IPage<RoomItemDTO> page, RoomPageQuery query);

    BigDecimal selectMinRentByApartmentId(Long id);
}
